<%@ page contentType="text/html; charset=UTF-8"%><!DOCTYPE HTML>
<html>
<head>
<title>desktop</title>
<script type="text/javascript" src="${pagecontext.request.contextpath}/static/admin/easyui/1.5.1/ext/jquery.portal.js"></script>
<script type="text/javascript">
$(function() {
	$('#pp').portal({border:false,height:document.documentElement.clientHeight});
	//通知公告
	notice();
	version();
	window.onresize = function() {
		$('#pp').portal({border:false,height:document.documentElement.clientHeight});
		$('.easyui-datagrid').datagrid('resize');
	};
	$('#Notice').on('click','a.link',function() {
		show({uri:'omiss/notice/view?id='+$(this).attr('data-id'),iconCls:'icon-notice',title:'查看公告',maximized:true});
	});
	$('#Version').on('click','a.link',function() {
		show({uri:'omiss/ver/detail?id='+$(this).attr('data-id'),iconCls:'icon-notice',title:'版本信息',width:600,height:400});
	});
});

function notice() {
	setInterval(function(){
		$('#Notice').panel('refresh');
	},60000);
}

function version() {
	setInterval(function(){
		$('#Version').panel('refresh');
	},60000);
}

</script>
</head>
<body>
<div id="pp">
    <div style="width:60%">
	    <div id="Notice" style="height:230px;" data-options="title:'tmp1',iconCls:'icon-notice',href:''">
	    图形
	    </div>
	    <div id="" style="height:230px;" data-options="title:'tmp2',iconCls:'icon-files'">
	    </div>
    </div>
    <div style="width:40%">
	    <div id="Version" style="height:230px;" data-options="title:'tmp3',iconCls:'icon-sys',href:''">
	    </div>
	    <div style="height:230px;" data-options="title:'tmp4',iconCls:'icon-chart'">
	    </div>
    </div>
</div>
</body>
</html>